<?php
@include_once("general.php");
$goodsId=isset($_GET["goodsId"])?$_GET["goodsId"]:0;
$sqlStr;
if($goodsId){
    global $sqlStr;
    $sqlStr="SELECT * FROM goods_detail WHERE goods_id='$goodsId'";
    echo json_encode(query($sqlStr));
}else{
    echo "检测参数有误，将会跳转到主页";
    header("location:../html/main.html");
}
?>